Class ZipTable

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JTable
                                   |
                                   +----ZipTable

public class ZipTable
extends JTable
Class zip table extends JTable, but specialize it : the render (with icons, and selected color)

Version:
1.0
Author:
Frank Moisant - Patrick Titiano

Variable Index

 o data
 o defaultIcon
 o font
 o iconTable
 o iconWork

Constructor Index

 o ZipTable(Vector, Vector)
Class constructor

Method Index

 o isCellEditable(int, int)
Return if the cell in row,col is editable
 o setHashtable()
Set the global hashtable of ImageIcon indexed by the file extension

Variables

 o defaultIcon
 private static ImageIcon defaultIcon
 o iconTable
 private static Hashtable iconTable
 o iconWork
 private ImageIcon iconWork
 o font
 private Font font
 o data
 private Vector data

Constructors

 o ZipTable
 public ZipTable(Vector dataTable,
                 Vector nameColumn)
Class constructor

Parameters:
dataTable - the table (vector of vectors) where data are stored
nameColumn - title of columns

Methods

 o isCellEditable
 public boolean isCellEditable(int row,
                               int col)
Return if the cell in row,col is editable

Parameters:
row - the row of the cell
col - the colomn of the cell
Returns:
always false the table is not editable
Overrides:
isCellEditable in class JTable
 o setHashtable
 public void setHashtable()
Set the global hashtable of ImageIcon indexed by the file extension